package com.zjn.serviceb.controller;




import com.zjn.entity.Identity;
import com.zjn.entity.UserInfoAll;

import com.zjn.serviceb.service.IdentityService;

import com.zjn.serviceb.service.feign.ServiceBFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zaker
 * @program: signit_parent
 * @date 2021-03-31 09:37
 */
@RestController
public class IdentityController implements ServiceBFeign {

    @Autowired
    private IdentityService identityService;

    @PostMapping("/updateidentity")
    @Override
    public String updateIdentity(@RequestBody Identity identity){

        return identityService.updateIdentity(identity);
    }
    @GetMapping("/findIdentity")
    @Override
    public Identity findIdentity(Identity identity) {
        return identityService.findIdentity(identity);
    }

    @Override
    @PostMapping("/createIdentity")
    public String createIdentity(Identity identity) {

        return identityService.createIdentity(identity);
    }
}
